package com.feige.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.feige.pojo.Collect;
import com.feige.pojo.DataFile;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 收藏表 Mapper 接口
 * </p>
 *
 * @author feige
 * @since 2021-04-05
 */
@Repository
public interface CollectMapper extends BaseMapper<Collect> {
    /**
     * 获取收藏
     * @param page 分页
     * @param userId 用户ID
     * @return
     */
    IPage<DataFile> getCollectByUserId(@Param("page") IPage<DataFile> page,@Param("userId") String userId);
}
